package com.xiaouyudeguang.common.annotation;

import com.xiaouyudeguang.common.config.ResourceServerConfig;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

@Documented
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableResourceServer
@Import({ResourceServerConfig.class})
@EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true)
public @interface EnableLabResourceServer {
}
